feat(ui5-user-settings-notifications-view): introduce NotificationsView in UserSettingsDialog - #13885
feat(ui5-user-settings-notifications-view): introduce NotificationsView in UserSettingsDialog#13885dobromiraboycheva wants to merge 16 commits into
Conversation
Sample sync reminderHTML sample changed but React sample (
Please keep both samples in sync, or ignore if the change does not apply to both. |
|
🚀 Deployed on https://pr-13885--ui5-webcomponents-preview.netlify.app |
👋 Heads-up: dev close is in effectThanks for the contribution! This repository is currently in dev close ahead of release This PR appears to introduce public-API changes (detected by diffing the Custom Elements Manifest against the latest published version on npm):
Could you please hold off on merging into If this change must ship in the current release, please request a review from one or two members of @UI5/ui5-team-webc so the team can sign off explicitly.
Posted automatically by the Dev Close Notice workflow. |
…ew component family
… and samples with design spec
…e div elements in React sample
4f27ad9 to
b4e1d7e
Compare
…gable and non-navigable items
…xed navigable lists
…site component pages
Overview
Introducing a new
UserSettingsNotificationsViewcomponent family for managing notification preferences insideUserSettingsDialog. The design follows a primary → detail drill-inpattern: a primary view lists all notification types (optionally grouped), and each navigable item opens a dedicated secondary view with its own independent state.
Structure
Three new components:
ui5-user-settings-notifications-view— extendsUserSettingsView. Acts as both the primary list view and the secondary detail view (marked withsecondary). Handles drill-innavigation automatically by matching a clicked item's
item-keyto theidof a sibling secondary view. If noidmatches, falls back to the first secondary sibling and sets itstextto the clicked item's label. Navigation can be fully overridden by canceling theitem-clickevent.ui5-user-settings-notifications-view-group— extendsListItemGroup. Groups items under a bold section header with a separator line, per the Fiori notifications design spec.ui5-user-settings-notifications-view-item— extendsListItemCustom. A toggle row with a title, an optional byline, and a trailing switch reflectingchecked. Settingnavigablerenders a navigation arrow and makes the row clickable. The trailing switch can be replaced entirely via theendContentslot (e.g. aui5-selectfor frequency); whenendContentis provided the switch andswitch-changeevent are suppressed.API
ui5-user-settings-notifications-view-itempropertiesitemKeystring""idfor drill-in navigation.textstring""bylineTextstring""checkedbooleanfalseendContentis used.navigablebooleanfalseitem-clickevent.ui5-user-settings-notifications-view-itemslotsendContentui5-select). Suppressesswitch-change.ui5-user-settings-notifications-view-grouppropertiesheaderTextstring""ui5-user-settings-notifications-viewslotsdefaultui5-user-settings-notifications-view-itemandui5-user-settings-notifications-view-groupelements.headerItemsrole="form"landmarks above the grouped items list. Each item is a separate Tab stop. Use for top-level toggles like "Allow Notifications".additionalContentui5-message-strip).Usage
Primary view with groups and navigable items:

Listening to events: